package com.bgIntlgn.client.entity.manufacture.oem;

import java.util.Date;

import yuhuibear.poat.annotations.relation.View;
import yuhuibear.poat.object.bean.Bean;

/**
 * OEMReceiptRecord视图
 * 
 * @author Simon Chen
 */
@View(name = "OEMReceiptRecord_view", sqlToCreate = "select oem_receipt_records.date as date, oem_orders.sum as sum, "
		+ "oem_receipt_records.money as money, customs.name as customname, dictionarys.name as type "
		+ "from (oem_orders left outer join oem_receipt_records on oem_orders.id = oem_receipt_records.oem_id), customs, dictionarys "
		+ "where customs.id = oem_orders.custom_id and dictionarys.id=oem_receipt_records.type;")
public class OEMReceiptRecordView implements Bean {

	private String customname;
	private Date date;
	private String type;
	private Double sum;
	private Double money;

	public String getCustomname() {
		return customname;
	}

	public void setCustomname(String customname) {
		this.customname = customname;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Double getSum() {
		return sum;
	}

	public void setSum(Double sum) {
		this.sum = sum;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}